package com.domain;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;

/**
*@Author: 喻晓涵
*@CreateTime: 2025-08-05
*@Description: ${description}
*@Version: 1.0
*/


/**
 * 试卷表
 */
@Data
public class ExamPaper implements java.io.Serializable{
    /**
    * 试卷ID，主键自增
    */
    @NotNull(message = "试卷ID，主键自增不能为null")
    private Long id;

    /**
    * 试卷总分
    */
    @NotNull(message = "试卷总分不能为null")
    private Integer totalScore;

    /**
    * 试卷标题
    */
    @Size(max = 200,message = "试卷标题最大长度要小于 200")
    private String title;

    // Getter 和 Setter 方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(Integer totalScore) {
        this.totalScore = totalScore;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    @Override
    public String toString() {
        return "ExamPaper{" +
        "id=" + id +
        ", totalScore=" + totalScore +
        ", title=" + title +
        "}";
    }
}